{% load debate_tags i18n %}

<li class="nav-item {% if results_nav %}active{% endif %}">
  <a class="nav-link" href="{% tournamenturl 'results-assistant-round-list' %}">
    {% trans "Enter Results" %}
  </a>
</li>

<li class="nav-item {% if feedback_nav %}active{% endif %}">
  <a class="nav-link" href="{% tournamenturl 'adjfeedback-assistant-add-index' %}">
    {% trans "Enter Feedback" %}
  </a>
</li>

<li class="nav-item dropdown {% if participants_nav or institutions_nav or code_names_nav %}active{% endif %}">
  <a class="nav-link dropdown-toggle" href="#" id="checkinsDrop"
     data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    {% trans "Participants" %}
  </a>
  <div class="dropdown-menu" aria-labelledby="checkinsDrop">
    <a class="dropdown-item {% if participants_nav %}active{% endif %}" href="{% tournamenturl 'participants-assistant-list' %}">
      {% trans "Participants List" %}
    </a>
    <a class="dropdown-item {% if institutions_nav %}active{% endif %}" href="{% tournamenturl 'participants-assistant-institutions-list' %}">
      {% trans "Institutions" %}
    </a>
    {% if pref.team_code_names != 'off' %}
      <a class="dropdown-item {% if code_names_nav %}active{% endif %}" href="{% tournamenturl 'participants-assistant-code-names-list' %}">
        {% trans "Code Names" %}
      </a>
    {% endif %}
  </div>
</li>

<li class="nav-item dropdown {% if checkins_nav %}active{% endif %}">
  <a class="nav-link dropdown-toggle" href="#" id="checkinsDrop"
     data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    {% trans "Check-Ins" %}
  </a>
  <div class="dropdown-menu" aria-labelledby="checkinsDrop">
    <a class="dropdown-item {% if checkins_scans %}active{% endif %}" href="{% tournamenturl 'assistant-checkin-prescan' %}">
      {% trans "Scan Identifiers" %}
    </a>
    <a class="dropdown-item {% if checkins_ids %}active{% endif %}" href="{% tournamenturl 'assistant-checkin-identifiers' %}">
      {% trans "View Identifiers" %}
    </a>
    <a class="dropdown-item {% if checkins_people_statuses %}active{% endif %}" href="{% tournamenturl 'assistant-people-statuses' %}">
      {% trans "People's Status" %}
    </a>
    <a class="dropdown-item {% if checkins_venues_statuses %}active{% endif %}" href="{% tournamenturl 'assistant-venues-statuses' %}">
      {% trans "Room's Status" %}
    </a>
  </div>
</li>

{% if pref.assistant_access != "results_only" %}
  <li class="nav-item {% if draw_nav %}active{% endif %}">
    <a class="nav-link" href="{% tournamenturl 'draw-assistant-display' %}">
      {% trans "Display/Print Draw" %}
    </a>
  </li>
{% endif %}
